
import config from "@/config"
import http from "@/utils/request"

export default {
	material:{
        url: `${config.API_URL}/adminapi/material.shopMaterialBase/all`,
        name: "获取所有物料",
        // get: async function(data={}){
        //     return await http.get(this.url, data);
        // }
        get: async function(params){
            return await http.get(this.url, params);
        }
	},
    brand:{
        url: `${config.API_URL}/adminapi/shop.shopBrand/all`,
        name: "获取所有品牌",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    Apply:{
        url: `${config.API_URL}/adminapi/shop.shopApply/all`,
        name: "获取所有供应商",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    settlement:{
        url: `${config.API_URL}/adminapi/config/getAllSettlementMethod`,
        name: "获取所有结算方式",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    supplier:{
        url: `${config.API_URL}/adminapi/config/getAllApplyCate`,
        name: "获取所有供应商分类",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    color:{
        url: `${config.API_URL}/adminapi/config/getAllColour`,
        name: "获取所有颜色",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    customer:{
        url: `${config.API_URL}/adminapi/shop.shopCustomer/all`,
        name: "获取所有客户",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    query:{
        url: `${config.API_URL}/adminapi/material.shopMaterial/all`,
        name: "根据物料名称查询物料规格信息",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    needle:{
        url: `${config.API_URL}/adminapi/shop.shopNeedleSeed/all`,
        name: "获取所有针种",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    technology:{
        url: `${config.API_URL}/adminapi/shop.shopTechnology/all`,
        name: "获取所有工艺",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    type:{
        url: `${config.API_URL}/adminapi/shop.shopGoodsSizeCate/all`,
        name: "获取所有类别",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    process:{
        url: `${config.API_URL}/adminapi/shop.shopProcess/all`,
        name: "获取所有工序",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    allTree:{
        url: `${config.API_URL}/adminapi/shop.shopProcess/allTree`,
        name: "获取所有工序树结构",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    
    unit:{
        url: `${config.API_URL}/adminapi/shop.shopGoodsUnit/all`,
        name: "获取所有单位",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    staff:{
        url: `${config.API_URL}/adminapi/config/getAllStaff`,
        name: "获取所有员工",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    goodsNumber:{
        url: `${config.API_URL}/adminapi/shop.shopGoods/all`,
        name: "获取所有货号",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    component:{
        url: `${config.API_URL}/adminapi/shop.shopGoodsComponent/all`,
        name: "获取所有成分",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    ware:{
        url: `${config.API_URL}/adminapi/shop.shopWare/all`,
        name: "获取所有仓位",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    returnReason:{
        url: `${config.API_URL}/adminapi/shop.shopReturnReason/all`,
        name: "获取所有退货原因",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    dept:{
        url: `${config.API_URL}/adminapi/dept.jobs/all`,
        name: "获取所有岗位",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    bill:{
        url: `${config.API_URL}/adminapi/finance.BillType/all`,
        name: "获取所有扣款类型",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    colorPosi:{
        url: `${config.API_URL}/adminapi/material.shopMaterialColorPosition/all`,
        name: "获取所有色位",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    produceList:{
        url: `${config.API_URL}/adminapi/finance.staffSalary/getMyProduceList`,
        name: "获取报工录入生产单列表",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    deducType:{
        url: `${config.API_URL}/adminapi/shop.staffDeductionType/all`,
        name: "全部补扣类型列表",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    printDef:{
        url: `${config.API_URL}/adminapi/config/getFactoryDefaultPrint`,
        name: "条码打印参数",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    getBatchNum:{
        url: `${config.API_URL}/adminapi/produce.workshopManage/getScanBatchNumber`,
        name: "本厂生产单所有批次号",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    getProduceFilter:{
        url: `${config.API_URL}/adminapi/produce.produceReceiveOrder/getProduceFilter`,
        name: "下单人 制单人 -- 生产单",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    getGoodsPro:{
        url: `${config.API_URL}/adminapi/shop.shopGoods/getGoodsMaterialProcess`,
        name: "商品选择工序",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    finish:{
        url: `${config.API_URL}/adminapi/shop.shopGroup/all`,
        name: "获取所有后整组别",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    wash:{
        url: `${config.API_URL}/adminapi/shop.shopWashMethod/all`,
        name: "获取所有洗水",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    qrcode:{
        url: `${config.API_URL}/adminapi/config/getCodeQrcode`,
        name: "二维码",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
}
